﻿using UnityEngine;
using System.Collections;

public abstract class DataItem : MonoBehaviour {

    public DataBase item;

    public virtual void Start()
    {
        item.objName = this.gameObject.name;
        GameDataManager._instance.gameData.Registe(item);
        GameDataManager._instance.Registe(this);
    }

    public abstract void Save();

    public abstract void Load(DataBase data);

}
